import { getlink } from "@/api/getlink"
export const home = {
    state: {
        yunCunKTV: [{
                musicName: '小情歌--弹幕',
                note: "小情歌",
                imgUrl: "http://p1.music.126.net/KkYmNkzIbhesefjKOxuBrQ==/109951166347404650.jpg",
                person: '朴树'
            },
            {
                musicName: '小情歌--弹幕',
                note: "小情歌",
                imgUrl: "http://p1.music.126.net/KkYmNkzIbhesefjKOxuBrQ==/109951166347404650.jpg",
                person: '朴树'
            },
            {
                musicName: '小情歌--弹幕',
                note: "小情歌",
                imgUrl: "http://p1.music.126.net/KkYmNkzIbhesefjKOxuBrQ==/109951166347404650.jpg",
                person: '朴树'
            },
            {
                musicName: '小情歌--弹幕',
                note: "小情歌",
                imgUrl: "http://p1.music.126.net/KkYmNkzIbhesefjKOxuBrQ==/109951166347404650.jpg",
                person: '朴树'
            },
            {
                musicName: '小情歌--弹幕',
                note: "小情歌",
                imgUrl: "http://p1.music.126.net/KkYmNkzIbhesefjKOxuBrQ==/109951166347404650.jpg",
                person: '朴树'
            },
            {
                musicName: '小情歌--弹幕',
                note: "小情歌",
                imgUrl: "http://p1.music.126.net/KkYmNkzIbhesefjKOxuBrQ==/109951166347404650.jpg",
                person: '朴树'
            },
        ]
    },
    mutations: {
        setState(state, payload) {
            state = payload;
        }
    },
    actions: {
        request(context) {
            getlink('/xpf/home').then((ok) => {
                context.commit('setState', ok.data.data.blocks)
            })
        }
    }
};